package edgeTSQL

import "gitee.com/fierce_wolf/go-fox-edge-common/edgeEntity"

type api interface {
	QueryRecords(tableName string, filter map[string]interface{}) ([]*edgeEntity.DeviceSequenceEntity, error)

	// QueryTableNames 查询有哪些数据库表
	QueryTableNames(tableName string) ([]string, error)

	// InsertRecord 一条插入数据库记录
	InsertRecord(tableName, sql string, values []interface{}) (int64, error)

	// CreateTable 创建数据库表
	CreateTable(tableName string) error

	// DropTable 删除数据库表
	DropTable(tableName string) error

	// ExecSQL 执行SQL语句
	ExecSQL(sql, tableName, tableNameTag string) error
}
